\(\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\) [734]
Optimal result
Integrand size = 25, antiderivative size = 431 \[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=-\frac {(a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d \sqrt {\sec (c+d x)}}-\frac {a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{d}
\]
[Out]
sin(d*x+c)*(a+b*cos(d*x+c))^(1/2)*sec(d*x+c)^(1/2)/d-(a-b)*csc(d*x+c)*EllipticE((a+b*cos(d*x+c))^(1/2)/(a+b)^(
1/2)/cos(d*x+c)^(1/2),((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1/2)*(a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+
sec(d*x+c))/(a-b))^(1/2)/a/d/sec(d*x+c)^(1/2)+csc(d*x+c)*EllipticF((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+
c)^(1/2),((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1/2)*(a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(
a-b))^(1/2)/d/sec(d*x+c)^(1/2)-a*csc(d*x+c)*EllipticPi((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+c)^(1/2),(a+
b)/b,((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1/2)*(a*(1-sec(d*x+c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(a-b)
)^(1/2)/b/d/sec(d*x+c)^(1/2)
Rubi [A] (verified)
Time = 1.05 (sec) , antiderivative size = 431, normalized size of antiderivative = 1.00, number of
steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.320, Rules used = {4307, 2900, 3133, 2888, 12,
2880, 2895, 3073} \[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\frac {\sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{d \sqrt {\sec (c+d x)}}-\frac {(a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a d \sqrt {\sec (c+d x)}}-\frac {a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{b d \sqrt {\sec (c+d x)}}+\frac {\sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a+b \cos (c+d x)}}{d}
\]
[In]
Int[Sqrt[a + b*Cos[c + d*x]]/Sqrt[Sec[c + d*x]],x]
[Out]
-(((a - b)*Sqrt[a + b]*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticE[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*
Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a
- b)])/(a*d*Sqrt[Sec[c + d*x]])) + (Sqrt[a + b]*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Co
s[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(
a*(1 + Sec[c + d*x]))/(a - b)])/(d*Sqrt[Sec[c + d*x]]) - (a*Sqrt[a + b]*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*Ellipt
icPi[(a + b)/b, ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a
*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(b*d*Sqrt[Sec[c + d*x]]) + (Sqrt[a + b*Cos
[c + d*x]]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/d
Rule 12
Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] && !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]
Rule 2880
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :
> Dist[1/(a - b), Int[1/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]), x], x] - Dist[b/(a - b), Int[(1 +
Sin[e + f*x])/((a + b*Sin[e + f*x])^(3/2)*Sqrt[c + d*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] &
& NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Rule 2888
Int[Sqrt[(b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Simp[2*b*(Tan
[e + f*x]/(d*f))*Rt[(c + d)/b, 2]*Sqrt[c*((1 + Csc[e + f*x])/(c - d))]*Sqrt[c*((1 - Csc[e + f*x])/(c + d))]*El
lipticPi[(c + d)/d, ArcSin[Sqrt[c + d*Sin[e + f*x]]/Sqrt[b*Sin[e + f*x]]/Rt[(c + d)/b, 2]], -(c + d)/(c - d)],
x] /; FreeQ[{b, c, d, e, f}, x] && NeQ[c^2 - d^2, 0] && PosQ[(c + d)/b]
Rule 2895
Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*(
Tan[e + f*x]/(a*f))*Rt[(a + b)/d, 2]*Sqrt[a*((1 - Csc[e + f*x])/(a + b))]*Sqrt[a*((1 + Csc[e + f*x])/(a - b))]
*EllipticF[ArcSin[Sqrt[a + b*Sin[e + f*x]]/Sqrt[d*Sin[e + f*x]]/Rt[(a + b)/d, 2]], -(a + b)/(a - b)], x] /; Fr
eeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && PosQ[(a + b)/d]
Rule 2900
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Si
mp[(-b)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1)*((c + d*Sin[e + f*x])^n/(f*(m + n))), x] + Dist[1/(d*(m + n)
), Int[(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^(n - 1)*Simp[a^2*c*d*(m + n) + b*d*(b*c*(m - 1) + a*d
*n) + (a*d*(2*b*c + a*d)*(m + n) - b*d*(a*c - b*d*(m + n - 1)))*Sin[e + f*x] + b*d*(b*c*n + a*d*(2*m + n - 1))
*Sin[e + f*x]^2, x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c
^2 - d^2, 0] && LtQ[0, m, 2] && LtQ[-1, n, 2] && NeQ[m + n, 0] && (IntegerQ[m] || IntegersQ[2*m, 2*n])
Rule 3073
Int[((A_) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_) + (d_.)*sin[(e_.)
+ (f_.)*(x_)]]), x_Symbol] :> Simp[-2*A*(c - d)*(Tan[e + f*x]/(f*b*c^2))*Rt[(c + d)/b, 2]*Sqrt[c*((1 + Csc[e +
f*x])/(c - d))]*Sqrt[c*((1 - Csc[e + f*x])/(c + d))]*EllipticE[ArcSin[Sqrt[c + d*Sin[e + f*x]]/Sqrt[b*Sin[e +
f*x]]/Rt[(c + d)/b, 2]], -(c + d)/(c - d)], x] /; FreeQ[{b, c, d, e, f, A, B}, x] && NeQ[c^2 - d^2, 0] && EqQ
[A, B] && PosQ[(c + d)/b]
Rule 3133
Int[((A_.) + (C_.)*sin[(e_.) + (f_.)*(x_)]^2)/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_.) + (d_.
)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist[C/b^2, Int[Sqrt[a + b*Sin[e + f*x]]/Sqrt[c + d*Sin[e + f*x]], x
], x] + Dist[1/b^2, Int[(A*b^2 - a^2*C - 2*a*b*C*Sin[e + f*x])/((a + b*Sin[e + f*x])^(3/2)*Sqrt[c + d*Sin[e +
f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f, A, C}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^
2, 0]
Rule 4307
Int[(csc[(a_.) + (b_.)*(x_)]*(c_.))^(m_.)*(u_), x_Symbol] :> Dist[(c*Csc[a + b*x])^m*(c*Sin[a + b*x])^m, Int[A
ctivateTrig[u]/(c*Sin[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSineIntegrandQ[u,
x]
Rubi steps \begin{align*}
\text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)} \, dx \\ & = \frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-\frac {a b}{2}+\frac {1}{2} a b \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{b} \\ & = \frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {1}{2} \left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {a+b \cos (c+d x)}} \, dx+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int -\frac {a b}{2 \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx}{b} \\ & = -\frac {a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{d}-\frac {1}{2} \left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx \\ & = -\frac {a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{d}+\frac {1}{2} \left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx-\frac {1}{2} \left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx \\ & = -\frac {(a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{d \sqrt {\sec (c+d x)}}-\frac {a \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{b d \sqrt {\sec (c+d x)}}+\frac {\sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{d} \\
\end{align*}
Mathematica [B] (warning: unable to verify)
Leaf count is larger than twice the leaf count of optimal. \(2995\) vs. \(2(431)=862\).
Time = 19.00 (sec) , antiderivative size = 2995, normalized size of antiderivative = 6.95
\[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\text {Result too large to show}
\]
[In]
Integrate[Sqrt[a + b*Cos[c + d*x]]/Sqrt[Sec[c + d*x]],x]
[Out]
(Sec[(c + d*x)/2]^2*Sqrt[1 + Sec[c + d*x]]*(8*(a + b)*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c
+ d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] + 16*a*Sqrt[Cos[c
+ d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticPi[-1, ArcSin[Tan[(
c + d*x)/2]], (-a + b)/(a + b)] - 16*a*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sqrt[(1 + Sec[c +
d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec[c + d*x]))] + 2*(a + b*Cos[c + d*x])*Sec[(c + d*x)/2]
^3*(-Sin[(c + d*x)/2] + Sin[(3*(c + d*x))/2])))/(16*d*((1 + Cos[c + d*x])^(-1))^(3/2)*Sqrt[Sec[c + d*x]]*((b*S
ec[(c + d*x)/2]^2*Sqrt[1 + Sec[c + d*x]]*Sin[c + d*x]*(8*(a + b)*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a
+ b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] + 16*a*
Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticPi[-1, A
rcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] - 16*a*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sqrt[(
1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec[c + d*x]))] + 2*(a + b*Cos[c + d*x])*Sec[(
c + d*x)/2]^3*(-Sin[(c + d*x)/2] + Sin[(3*(c + d*x))/2])))/(32*((1 + Cos[c + d*x])^(-1))^(3/2)*(a + b*Cos[c +
d*x])^(3/2)) - (3*Sec[(c + d*x)/2]^2*Sqrt[1 + Sec[c + d*x]]*Sin[c + d*x]*(8*(a + b)*Sqrt[Cos[c + d*x]/(1 + Cos
[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a +
b)/(a + b)] + 16*a*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x])
)]*EllipticPi[-1, ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] - 16*a*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a +
b)/(a + b)]*Sqrt[(1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec[c + d*x]))] + 2*(a + b*
Cos[c + d*x])*Sec[(c + d*x)/2]^3*(-Sin[(c + d*x)/2] + Sin[(3*(c + d*x))/2])))/(32*Sqrt[(1 + Cos[c + d*x])^(-1)
]*Sqrt[a + b*Cos[c + d*x]]) + (Sec[(c + d*x)/2]^2*Sqrt[1 + Sec[c + d*x]]*(8*(a + b)*Sqrt[Cos[c + d*x]/(1 + Cos
[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a +
b)/(a + b)] + 16*a*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x])
)]*EllipticPi[-1, ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] - 16*a*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a +
b)/(a + b)]*Sqrt[(1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec[c + d*x]))] + 2*(a + b*
Cos[c + d*x])*Sec[(c + d*x)/2]^3*(-Sin[(c + d*x)/2] + Sin[(3*(c + d*x))/2]))*Tan[(c + d*x)/2])/(16*((1 + Cos[c
+ d*x])^(-1))^(3/2)*Sqrt[a + b*Cos[c + d*x]]) + (Sec[(c + d*x)/2]^2*Sec[c + d*x]*(8*(a + b)*Sqrt[Cos[c + d*x]
/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticE[ArcSin[Tan[(c + d*x)/2]
], (-a + b)/(a + b)] + 16*a*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[
c + d*x]))]*EllipticPi[-1, ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] - 16*a*EllipticF[ArcSin[Tan[(c + d*x)/2
]], (-a + b)/(a + b)]*Sqrt[(1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec[c + d*x]))] +
2*(a + b*Cos[c + d*x])*Sec[(c + d*x)/2]^3*(-Sin[(c + d*x)/2] + Sin[(3*(c + d*x))/2]))*Tan[c + d*x])/(32*((1 +
Cos[c + d*x])^(-1))^(3/2)*Sqrt[a + b*Cos[c + d*x]]*Sqrt[1 + Sec[c + d*x]]) + (Sec[(c + d*x)/2]^2*Sqrt[1 + Sec[
c + d*x]]*(2*(a + b*Cos[c + d*x])*(-1/2*Cos[(c + d*x)/2] + (3*Cos[(3*(c + d*x))/2])/2)*Sec[(c + d*x)/2]^3 + (4
*(a + b)*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a + b)/
(a + b)]*((Cos[c + d*x]*Sin[c + d*x])/(1 + Cos[c + d*x])^2 - Sin[c + d*x]/(1 + Cos[c + d*x])))/Sqrt[Cos[c + d*
x]/(1 + Cos[c + d*x])] + (8*a*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*EllipticPi[-1, ArcSin[Ta
n[(c + d*x)/2]], (-a + b)/(a + b)]*((Cos[c + d*x]*Sin[c + d*x])/(1 + Cos[c + d*x])^2 - Sin[c + d*x]/(1 + Cos[c
+ d*x])))/Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])] + (4*(a + b)*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*EllipticE[
ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*(-((b*Sin[c + d*x])/((a + b)*(1 + Cos[c + d*x]))) + ((a + b*Cos[c
+ d*x])*Sin[c + d*x])/((a + b)*(1 + Cos[c + d*x])^2)))/Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]
+ (8*a*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*EllipticPi[-1, ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*(-((b
*Sin[c + d*x])/((a + b)*(1 + Cos[c + d*x]))) + ((a + b*Cos[c + d*x])*Sin[c + d*x])/((a + b)*(1 + Cos[c + d*x])
^2)))/Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))] - 2*b*Sec[(c + d*x)/2]^3*Sin[c + d*x]*(-Sin[(c +
d*x)/2] + Sin[(3*(c + d*x))/2]) + 3*(a + b*Cos[c + d*x])*Sec[(c + d*x)/2]^3*(-Sin[(c + d*x)/2] + Sin[(3*(c +
d*x))/2])*Tan[(c + d*x)/2] - (8*a*Sec[(c + d*x)/2]^2*Sqrt[(1 + Sec[c + d*x])^(-1)]*Sqrt[(b + a*Sec[c + d*x])/(
(a + b)*(1 + Sec[c + d*x]))])/(Sqrt[1 - Tan[(c + d*x)/2]^2]*Sqrt[1 - ((-a + b)*Tan[(c + d*x)/2]^2)/(a + b)]) +
(8*a*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*Sec[(c + d
*x)/2]^2)/(Sqrt[1 - Tan[(c + d*x)/2]^2]*(1 + Tan[(c + d*x)/2]^2)*Sqrt[1 - ((-a + b)*Tan[(c + d*x)/2]^2)/(a + b
)]) + (4*(a + b)*Sqrt[Cos[c + d*x]/(1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]
*Sec[(c + d*x)/2]^2*Sqrt[1 - ((-a + b)*Tan[(c + d*x)/2]^2)/(a + b)])/Sqrt[1 - Tan[(c + d*x)/2]^2] + 8*a*Ellipt
icF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sec[c + d*x]*((1 + Sec[c + d*x])^(-1))^(3/2)*Sqrt[(b + a*Sec[c
+ d*x])/((a + b)*(1 + Sec[c + d*x]))]*Tan[c + d*x] - (8*a*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b
)]*Sqrt[(1 + Sec[c + d*x])^(-1)]*((a*Sec[c + d*x]*Tan[c + d*x])/((a + b)*(1 + Sec[c + d*x])) - (Sec[c + d*x]*(
b + a*Sec[c + d*x])*Tan[c + d*x])/((a + b)*(1 + Sec[c + d*x])^2)))/Sqrt[(b + a*Sec[c + d*x])/((a + b)*(1 + Sec
[c + d*x]))]))/(16*((1 + Cos[c + d*x])^(-1))^(3/2)*Sqrt[a + b*Cos[c + d*x]])))
Maple [B] (verified)
Leaf count of result is larger than twice the leaf count of optimal. \(1068\) vs. \(2(391)=782\).
Time = 6.16 (sec) , antiderivative size = 1069, normalized size of antiderivative =
2.48
| | |
method | result | size |
| | |
default |
\(\text {Expression too large to display}\) |
\(1069\) |
| | |
|
|
|
[In]
int((a+cos(d*x+c)*b)^(1/2)/sec(d*x+c)^(1/2),x,method=_RETURNVERBOSE)
[Out]
1/d/(1+cos(d*x+c))/(a+cos(d*x+c)*b)^(1/2)/sec(d*x+c)^(1/2)*(2*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(
1/2))*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*a*cos(d*x+c)-EllipticE(c
ot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/
(a+b))^(1/2)*a*cos(d*x+c)-EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*(cos(d*x+c)/(1+cos(d*x+c)))^(1
/2)*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*b*cos(d*x+c)-2*EllipticPi(cot(d*x+c)-csc(d*x+c),-1,(-(a-b)/(
a+b))^(1/2))*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*a*cos(d*x+c)+4*(c
os(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*((a+cos(d*x+c)*b)/(1+cos
(d*x+c))/(a+b))^(1/2)*a-2*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/
2))*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*a-2*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-c
sc(d*x+c),(-(a-b)/(a+b))^(1/2))*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*b-4*(cos(d*x+c)/(1+cos(d*x+c)))^
(1/2)*EllipticPi(cot(d*x+c)-csc(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*
a+2*sec(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*((a+cos
(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*a-sec(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc
(d*x+c),(-(a-b)/(a+b))^(1/2))*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*a-sec(d*x+c)*(cos(d*x+c)/(1+cos(d*
x+c)))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/
2)*b-2*sec(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*EllipticPi(cot(d*x+c)-csc(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*
((a+cos(d*x+c)*b)/(1+cos(d*x+c))/(a+b))^(1/2)*a+sin(d*x+c)*cos(d*x+c)*b+a*sin(d*x+c))
Fricas [F]
\[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\int { \frac {\sqrt {b \cos \left (d x + c\right ) + a}}{\sqrt {\sec \left (d x + c\right )}} \,d x }
\]
[In]
integrate((a+b*cos(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x, algorithm="fricas")
[Out]
integral(sqrt(b*cos(d*x + c) + a)/sqrt(sec(d*x + c)), x)
Sympy [F]
\[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\int \frac {\sqrt {a + b \cos {\left (c + d x \right )}}}{\sqrt {\sec {\left (c + d x \right )}}}\, dx
\]
[In]
integrate((a+b*cos(d*x+c))**(1/2)/sec(d*x+c)**(1/2),x)
[Out]
Integral(sqrt(a + b*cos(c + d*x))/sqrt(sec(c + d*x)), x)
Maxima [F]
\[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\int { \frac {\sqrt {b \cos \left (d x + c\right ) + a}}{\sqrt {\sec \left (d x + c\right )}} \,d x }
\]
[In]
integrate((a+b*cos(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x, algorithm="maxima")
[Out]
integrate(sqrt(b*cos(d*x + c) + a)/sqrt(sec(d*x + c)), x)
Giac [F]
\[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\int { \frac {\sqrt {b \cos \left (d x + c\right ) + a}}{\sqrt {\sec \left (d x + c\right )}} \,d x }
\]
[In]
integrate((a+b*cos(d*x+c))^(1/2)/sec(d*x+c)^(1/2),x, algorithm="giac")
[Out]
integrate(sqrt(b*cos(d*x + c) + a)/sqrt(sec(d*x + c)), x)
Mupad [F(-1)]
Timed out. \[
\int \frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx=\int \frac {\sqrt {a+b\,\cos \left (c+d\,x\right )}}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}} \,d x
\]
[In]
int((a + b*cos(c + d*x))^(1/2)/(1/cos(c + d*x))^(1/2),x)
[Out]
int((a + b*cos(c + d*x))^(1/2)/(1/cos(c + d*x))^(1/2), x)